﻿<controls:MetroWindow x:Class="GroepEF4.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:controls="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
        Title="Samen sterker - Aanmelden" Height="472.194" Width="622.142"
        ResizeMode="NoResize" Icon="Img\SamenSterker.ico" Topmost="True" ShowIconOnTitleBar="False"
        GlowBrush="{DynamicResource AccentColorBrush}"
        WindowStartupLocation="CenterScreen"
        EnableDWMDropShadow="True" Loaded="Grid_Loaded">

    <Window.Resources>
        <Style x:Key="btnStyle1" TargetType="{x:Type Button}">
            <Setter Property="Background" Value="#27ae60"/>
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="{x:Type Button}">
                        <Border Background="{TemplateBinding Background}">
                            <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
                        </Border>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
            <Style.Triggers>
                <Trigger Property="IsMouseOver" Value="True">
                    <Setter Property="Background" Value="#2ecc71"/>
                </Trigger>
            </Style.Triggers>
        </Style>

        <Style TargetType="{x:Type Image}">
            <Setter Property="RenderOptions.BitmapScalingMode" 
               Value="HighQuality" />
        </Style>
    </Window.Resources>

    <Grid Margin="0,0,0,0" Loaded="Grid_Loaded">
        <Image HorizontalAlignment="Left" Height="118" Margin="24,22,0,0" VerticalAlignment="Top" Width="122" Source="Img\SamenSterker.png"/>
        <Label Content="Welkom bij Samen Sterker" FontFamily="Microsoft YaHei UI Light"  HorizontalAlignment="Left" Margin="151,52,0,0" VerticalAlignment="Top" Foreground="#2c3e50" FontSize="35" Height="60" Width="435"/>
        <Label Content="Aanmelden" FontFamily="Microsoft YaHei UI Light" Foreground="#595959"  FontSize="33" HorizontalAlignment="Left" Margin="151,150,0,0" VerticalAlignment="Top" RenderTransformOrigin="0.275,0.541"/>
        <TextBox Name="txtGebruikersnaam" HorizontalAlignment="Left" Height="24" Margin="151,236,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="322" VerticalContentAlignment="Center"/>
        <PasswordBox Name="txtPassword" HorizontalAlignment="Left" Height="26" Width="322" Margin="151,293,0,0" VerticalAlignment="Top" VerticalContentAlignment="Center"/>
        <Button Style="{StaticResource btnStyle1}" Content="Meld aan" FontFamily="Microsoft YaHei UI Light" FontSize="18" Foreground="White" HorizontalAlignment="Left" Margin="151,352,0,0" VerticalAlignment="Top" Width="167" Height="40" Click="Button_Click" IsDefault="True"/>
        <controls:ProgressRing Name="ProgressRing" Margin="360,352,216,51" Height="40" Width="40" Foreground="#595959"></controls:ProgressRing>
        <Label Content="Gebruikersnaam:" FontSize="12" HorizontalAlignment="Left" Margin="151,210,0,0" VerticalAlignment="Top" Foreground="#7f8c8d"/>
        <Label Content="Wachtwoord:" FontSize="12" HorizontalAlignment="Left" Margin="151,267,0,0" VerticalAlignment="Top" Foreground="#7f8c8d"/>
    </Grid>

</controls:MetroWindow>

